$ ->
	$('#playerhand').hide()
	
	$.get './cs1', (data) ->
		$('#playerhand').html(data).waitForImages ->
			$('#playerhand span img').addClass 'unchoosen'
			$('#playerhand span img').click ->
				$(this).toggleClass('unchoosen').toggleClass('choosen');
	
	$('#playerhand').fadeIn('slow')